import { toCStr, lib } from "./ffi";
import { ConfigFlags, type Image } from "./utils"
import Bun from "bun";
import Path from "path";
import Fs from "fs";

export const Textures = {
    loadImage: function (fileName: string): Image {
        const filePath = Path.resolve(fileName);
        console.log("filePath", toCStr(filePath));
        const image = lib.symbols.LoadImage(toCStr(filePath));
        return { ptr: image }
    }
}